<?php
namespace Library;
class DaLiuren{
    public function index($birthday,$remarks,$sex,$username){
        $remarksArr=json_decode($remarks,true);
        $zhanshi=$remarksArr['zhanshi'];//占时
        $grType=$remarksArr['grType'];//1.按卯酉时分 2.起白天贵神 3.起夜晚贵神
        $qijuType=$remarksArr['qijuType'];//1.正时起局  2.报数起局
        $baoshuNum=$remarksArr['baoshuNum'];
        $qikeTime=$remarksArr['qikeTime'];//起课时间
        if($qikeTime){
            $birthday=$qikeTime;
        }

        $qijuType==1?$qijuName='正时起局':$qijuName='报数起局';
        $sex?$sexName='男':$sexName='女';
        $Arr['userName']="{$username},{$sexName}";

        $ymdArr=explode('-',$birthday);

        $y=$ymdArr[1];$m=$ymdArr[2];$d=$ymdArr[3];$hour=$ymdArr[4];
        $zymd=$y.'-'.str_pad($m,2,"0",STR_PAD_LEFT).'-'.str_pad($d,2,"0",STR_PAD_LEFT);
        $weekarray=array("日","一","二","三","四","五","六");
        $timeName="{$y}年{$m}月{$d}日{$hour}时"." 星期".$weekarray[date("w",strtotime($zymd))];
        $Arr['yangli']=$timeName;
        $zyinli=yinli($y,$m,$d);
        $jieqi=cookie('jieqi');
        jieqiapi($y,$jieqi);
        $jieqi24=cookie('24jieqi');

        $Arr['jieqi']="{$jieqi}:{$jieqi24}";

        if($zymd!=''){
            zwmp($zymd,$hour,'男','sizhu');
            $sizhu=I('globals.sizhu');//Z四柱
            $Arr['sizhu']=$sizhu;
            $yueZ=mb_substr($sizhu[1],1,1,'utf-8');
            $riG=mb_substr($sizhu[2],0,1,'utf-8');
            $riZ=mb_substr($sizhu[2],1,1,'utf-8');
        }
        $Arr['zhanshi']=$sizhu[2].'日'.$zhanshi.'时';
        $yinli=$zyinli[0].'年'.$zyinli[1].$zyinli[2].'日'.mb_substr($sizhu[3],1,1,'utf-8').'时';//阴历
        $Arr['yinli']=$yinli;

        $dizhiGW=array('寅','卯','辰','巳','午','未','申','酉','戌','亥','子','丑');//排序宫位
        $dizhiArr=array('','子','丑','寅','卯','辰','巳','午','未','申','酉','戌','亥');//地支
        if($qijuType==2){//报数起局
            $baoshuNum%=12;
            if($baoshuNum==0){$baoshuNum=12;}
            $zhanshi=$dizhiArr[$baoshuNum];
            $grType=2;
        }

        //旬空
        $xunshouArr=array(
            '戊'=>array('戌亥','甲子','乙丑','丙寅','丁卯','戊辰','己巳','庚午','辛未','壬申','癸酉'),
            '己'=>array('申酉','甲戌','乙亥','丙子','丁丑','戊寅','己卯','庚辰','辛巳','壬午','癸未'),
            '庚'=>array('午未','甲申','乙酉','丙戌','丁亥','戊子','己丑','庚寅','辛卯','壬辰','癸巳'),
            '辛'=>array('辰巳','甲午','乙未','丙申','丁酉','戊戌','己亥','庚子','辛丑','壬寅','癸卯'),
            '壬'=>array('寅卯','甲辰','乙巳','丙午','丁未','戊申','己酉','庚戌','辛亥','壬子','癸丑'),
            '癸'=>array('子丑','甲寅','乙卯','丙辰','丁巳','戊午','己未','庚申','辛酉','壬戌','癸亥')
        );
        foreach($sizhu as $key=>$value){
            foreach($xunshouArr as $k=>$v){
                if(array_search($value,$v)){
                    $Arr['xunkong'][$key]=$v[0];
                    if($key==2){$riXunArr=$v;}
                }
            }
        }
        $Arr['kongWang']=mb_substr($Arr['xunkong'][2],0,1,'utf-8').'、'.mb_substr($Arr['xunkong'][2],1,1,'utf-8')."({$qijuName})";
        //月将
        $arrjeiqi=array(
            "雨水"=>'亥',"惊蛰"=>'亥',"春分"=>'戌',"清明"=>'戌',"谷雨"=>'酉',"立夏"=>'酉',"小满"=>'申',"芒种"=>'申',
            "夏至"=>'未',"小暑"=>'未',"大暑"=>'午',"立秋"=>'午',"处暑"=>'巳',"白露"=>'巳',"秋分"=>'辰',"寒露"=>'辰',
            "霜降"=>'卯',"立冬"=>'卯',"小雪"=>'寅',"大雪"=>'寅',"冬至"=>'丑',"小寒"=>'丑',"大寒"=>'子',"立春"=>'子',
        );
//        $yuejianArr=array(
//            '寅'=>'子','卯'=>'亥','辰'=>'戌','巳'=>'酉','午'=>'申','未'=>'未','申'=>'午','酉'=>'巳','戌'=>'辰','亥'=>'卯','子'=>'寅','丑'=>'丑',
//        );
        $yuejian=$arrjeiqi[$jieqi];
        $Arr['yuejian']=$yuejian;
        //天盘
        $numKey=array_search($yuejian,$dizhiGW);
        $tpDataArr=array_slice($dizhiGW,$numKey);
        $yjArr=array_slice(array_merge($tpDataArr,$dizhiGW),0,12);

        $numKey=array_search($zhanshi,$dizhiGW);
        $tpDataArr=array_slice($yjArr,12-$numKey);
        $tpDataArr=array_slice(array_merge($tpDataArr,$yjArr),0,12);
        if($tpDataArr[0]=='寅'){
            $yinNum=1;//寅在键0
        }
        //贵人 十二天将
        if($grType==2){$grKey=0;
        }elseif($grType==3){$grKey=1;
        }else{
            if($numKey>=1&&$numKey<=6){$grKey=0;
            }else{$grKey=1;
            }
        }
        if($riG=='甲'||$riG=='戊'||$riG=='庚'){
            $guirenArr=array('丑','未');
        }elseif($riG=='乙'||$riG=='己'){
            $guirenArr=array('子','申');
        }elseif($riG=='丙'||$riG=='丁'){
            $guirenArr=array('亥','酉');
        }elseif($riG=='壬'||$riG=='癸'){
            $guirenArr=array('巳','卯');
        }else{
            $guirenArr=array('午','寅');
        }
        $grZ=$guirenArr[$grKey];

        foreach($tpDataArr as $key=>$value){
            if($value==$grZ){
                if($key>=3&&$key<=8){$setjSort=0;
                }else{$setjSort=1;
                }
                $grWz=$key;
            }
        }
        if($setjSort){
            $setjArr=array('贵','蛇','雀','合','勾','龙','空','虎','常','玄','阴','后');
        }else{
            $setjArr=array('贵','后','阴','玄','常','虎','空','龙','勾','合','雀','蛇');
        }
        $tjDataArr=array_slice($setjArr,12-$grWz);
        $tjDataArr=array_slice(array_merge($tjDataArr,$setjArr),0,12);
        foreach($tjDataArr as $key=>$value){
            $tptj[$key]=$tpDataArr[$key].$value;
        }
        $Arr['tptj']=$tptj;
        //四课
        $jigongArr=array(
            '甲'=>'寅','乙'=>'辰','丙'=>'巳','丁'=>'未','戊'=>'巳','己'=>'未','庚'=>'申','辛'=>'戌','壬'=>'亥','癸'=>'丑',
        );
        $keZ1=$jigongArr[$riG];
        $keKey1=array_search($keZ1,$dizhiGW);
        $ke1=$riG.$tptj[$keKey1];
        $keZ2=mb_substr($tptj[$keKey1],0,1,'utf-8');
        $keKey2=array_search($keZ2,$dizhiGW);
        $ke2=$keZ2.$tptj[$keKey2];

        $keZ3=$riZ;
        $keKey3=array_search($keZ3,$dizhiGW);
        $ke3=$keZ3.$tptj[$keKey3];
        $keZ4=mb_substr($tptj[$keKey3],0,1,'utf-8');
        $keKey4=array_search($keZ4,$dizhiGW);
        $ke4=$keZ4.$tptj[$keKey4];

        $Arr['sKe']=array($ke4,$ke3,$ke2,$ke1);
        foreach($Arr['sKe'] as $key=>$value){
            $str=implode(array_reverse(str_split($value,3)));
            $Arr['sKe'][$key]=$str;
        }
        //三传
        $zhuanStr=$this->sanZhuanData($ke1,$sizhu[2]);
        $zhuanZ1=mb_substr($zhuanStr,0,1,'utf-8');
        $zhuanNum1=array_search($zhuanZ1,$tpDataArr);
        $zhuan1=$tptj[$zhuanNum1];
        $zhuanNum2=array_search(mb_substr($zhuanStr,1,1,'utf-8'),$tpDataArr);
        $zhuan2=$tptj[$zhuanNum2];
        $zhuanNum3=array_search(mb_substr($zhuanStr,2,1,'utf-8'),$tpDataArr);
        $zhuan3=$tptj[$zhuanNum3];
        $sanZhuan=array($zhuan1,$zhuan2,$zhuan3);

        //三传六亲
        $liuqin=$this->liuqin($riXunArr,$sanZhuan,$riG);
        $Arr['sanZhuan']=$liuqin;

        //dump($Arr);
        return $Arr;
    }
    public function sZjigong($riXunArr,$jigongArr,$zhuanZ1){
        foreach($riXunArr as $k=>$v){
            if(substr_count($v,$zhuanZ1)){
                $number=0;
                $strData=mb_substr($v,0,1,'utf-8');
                return $jigongArr[$strData];
                break;
            }else{
                $number=1;
            }
        }
        if($number){
            return $zhuanZ1;
        }
    }
    public function liuqin($riXunArr,$sanZhuan,$riG){//六亲
        $riXunArr[0]='';
        $wuxingArr=array(
            '木'=>'甲乙寅卯',
            '火'=>'丙丁巳午',
            '土'=>'戊己戌未辰丑',
            '金'=>'庚辛申酉',
            '水'=>'壬癸亥子',
        );
        foreach($wuxingArr as $key=>$value){
            if(substr_count($value,$riG)){$riGWx=$key;break;}
        }


        foreach($sanZhuan as $key=>$value){
            $diZ=mb_substr($value,0,1,'utf-8');
            foreach($riXunArr as $k=>$v){
                if(substr_count($v,$diZ)){
                    $number=0;
                    $Arr[$key]=$v.' '.mb_substr($value,1,1,'utf-8');break;
                }else{
                    $number=1;
                }
            }
            if($number){
                $Arr[$key]=$diZ.'空 '.mb_substr($value,1,1,'utf-8');
            }

            foreach($wuxingArr as $k=>$v){
                if(substr_count($v,$diZ)){
                    $diZWx=$k;
                    $liuqinData=$this->wuxingLiuqin($diZWx,$riGWx);
                    $Arr[$key]=$liuqinData.' '.$Arr[$key];
                    break;
                }
            }
        }


        //dump($Arr);exit;
        return $Arr;
    }
    public function wuxingLiuqin($xunGWx,$riGWx){//五行六亲
        if(($xunGWx=='木'&&$riGWx=='火')or($xunGWx=='火'&&$riGWx=='土')or($xunGWx=='土'&&$riGWx=='金')or($xunGWx=='金'&&$riGWx=='水')or($xunGWx=='水'&&$riGWx=='木')){
            $strData='父';//生我者
        }elseif(($xunGWx=='火'&&$riGWx=='木')or($xunGWx=='土'&&$riGWx=='火')or($xunGWx=='金'&&$riGWx=='土')or($xunGWx=='水'&&$riGWx=='金')or($xunGWx=='木'&&$riGWx=='水')){
            $strData='子';//我生者
        }elseif(($xunGWx=='木'&&$riGWx=='土')or($xunGWx=='土'&&$riGWx=='水')or($xunGWx=='水'&&$riGWx=='火')or($xunGWx=='火'&&$riGWx=='金')or($xunGWx=='金'&&$riGWx=='木')){
            $strData='官';//克我者
        }elseif(($xunGWx=='土'&&$riGWx=='木')or($xunGWx=='水'&&$riGWx=='土')or($xunGWx=='火'&&$riGWx=='水')or($xunGWx=='金'&&$riGWx=='火')or($xunGWx=='木'&&$riGWx=='金')){
            $strData='财';//我克者
        }else{
            $strData='比';
        }
        return $strData;
    }
    public function sanZhuanData($ke1,$gz){//三传获取
        $ssGz=mb_substr($ke1,1,1,'utf-8');
        $dizhiNumArr=array('子'=>0,'丑'=>1,'寅'=>2,'卯'=>3,'辰'=>4,'巳'=>5,'午'=>6,'未'=>7,'申'=>8,'酉'=>9,'戌'=>10,'亥'=>11);
        $arrData=array(
            '甲子'=>array('戌申午','子亥戌','寅巳申','辰巳午','辰午申','申亥寅','辰申子','子巳戌','寅申寅','寅酉辰','戌午寅','午卯子',),
            '甲戌'=>array('午辰寅','子亥戌','寅巳申','辰巳午','辰午申','申亥寅','寅午戌','子巳戌','寅申寅','子子寅','戌午寅','申巳寅',),
            '甲申'=>array('午辰寅','子亥戌','寅巳申','辰巳午','辰午申','申亥寅','辰申子','子巳戌','寅申寅','戌巳子','戌午寅','巳寅亥',),
            '甲午'=>array('戌申午','子亥戌','寅巳申','辰巳午','辰午申','申亥寅','寅午戌','子巳戌','寅申寅','酉辰亥','戌午寅','申巳寅',),
            '甲辰'=>array('戌申午','子亥戌','寅巳申','辰巳午','辰午申','申亥寅','申子辰','寅未子','寅申寅','午丑申','戌午寅','申巳寅',),
            '甲寅'=>array('戌申午','子亥戌','寅巳申','辰巳午','辰午申','申亥寅','申午午','子巳戌','寅申寅','酉辰亥','戌午寅','丑亥亥',),
            '乙丑'=>array('巳丑酉','丑戌未','亥酉未','子亥戌','辰丑戌','寅卯辰','申戌子','未戌丑','酉丑巳','寅未子','戌辰戌','卯戌巳',),
            '乙亥'=>array('未卯亥','丑戌未','酉未巳','戌酉申','辰亥巳','丑寅卯','申戌子','未戌丑','未亥卯','寅未子','巳亥巳','午丑申',),
            '乙酉'=>array('巳丑酉','丑戌未','未巳卯','申未午','辰酉卯','亥子丑','申戌子','未戌丑','申子辰','未子巳','卯酉卯','亥午丑',),
            '乙未'=>array('卯亥未','丑戌未','亥寅巳','戌卯午','辰未丑','酉戌亥','申戌子','未戌丑','亥卯未','巳戌卯','戌辰戌','午丑申',),
            '乙巳'=>array('酉巳丑','丑戌未','丑亥酉','卯寅丑','辰巳申','未申酉','申戌子','未戌丑','酉丑巳','寅未子','巳亥巳','午丑申',),
            '乙卯'=>array('未卯亥','丑戌未','丑亥酉','丑子亥','辰卯子','辰巳午','申戌子','酉子卯','未亥卯','寅未子','卯酉卯','午丑申',),
            '丙寅'=>array('子未寅','戌午寅','亥申巳','丑亥酉','子亥戌','巳申寅','辰巳午','辰午申','申亥寅','酉丑巳','子巳戌','寅申寅',),
            '丙子'=>array('子未寅','申辰子','午卯子','丑亥酉','戌酉申','巳申寅','寅卯辰','辰午申','申亥寅','酉丑巳','巳戌卯','午子午',),
            '丙戌'=>array('子未寅','酉巳丑','亥申巳','丑亥酉','卯寅丑','巳申寅','亥子丑','子寅辰','申亥寅','酉丑巳','申丑午','巳亥巳',),
            '丙申'=>array('戌巳子','子申辰','巳寅亥','丑亥酉','卯寅丑','巳申寅','酉戌亥','子寅辰','申亥寅','酉丑巳','卯申丑','寅申寅',),
            '丙午'=>array('子未寅','戌午寅','子酉午','丑亥酉','卯寅丑','巳申寅','申酉戌','申戌子','申亥寅','酉丑巳','辰酉寅','午子午',),
            '丙辰'=>array('午丑申','子申辰','亥申巳','丑亥酉','卯寅丑','巳申寅','亥午午','申戌子','申亥寅','酉丑巳','寅未子','巳亥巳',),
            '丁卯'=>array('巳戌卯','卯酉卯','戌巳子','未卯亥','子酉午','亥酉未','丑子亥','卯子午','辰巳午','酉亥丑','酉子卯','未亥卯',),
            '丁丑'=>array('巳戌卯','亥未丑','卯戌巳','巳丑酉','子辰戌','亥酉未','子亥戌','丑戌未','申酉戌','酉亥丑','午戌辰','酉丑巳',),
            '丁亥'=>array('巳戌卯','巳亥巳','午丑申','未卯亥','巳寅亥','酉未巳','戌酉申','亥未丑','申酉戌','酉亥丑','午戌寅','未亥卯',),
            '丁酉'=>array('未子巳','卯酉卯','亥午丑','巳丑酉','午卯子','丑巳巳','申未午','酉未丑','亥子丑','酉亥丑','子卯午','亥卯未',),
            '丁未'=>array('巳戌卯','巳丑丑','酉辰亥','卯亥未','亥辰辰','丑巳巳','卯午午','未丑戌','申酉戌','酉亥丑','亥戌戌','亥卯未',),
            '丁巳'=>array('巳戌卯','巳亥巳','酉辰亥','亥未卯','亥申巳','丑亥酉','卯寅丑','巳申寅','申酉戌','酉亥丑','申亥寅','酉丑巳',),
            '戊辰'=>array('子未寅','子申辰','寅亥申','丑亥酉','卯寅丑','巳申寅','寅午午','申戌子','亥寅巳','子辰申','寅未子','亥巳亥',),
            '戊寅'=>array('子未寅','戌午寅','寅亥申','丑亥酉','子亥戌','巳申寅','辰巳午','辰午申','申亥寅','丑午酉','子巳戌','寅申寅',),
            '戊子'=>array('子未寅','巳申丑','寅亥申','丑亥酉','戌酉申','巳申寅','寅卯辰','辰午申','卯午酉','辰申子','巳戌卯','午子午',),
            '戊戌'=>array('子未寅','寅戌午','寅亥申','丑亥酉','卯寅丑','巳申寅','亥子丑','子寅辰','亥寅巳','寅午戌','申丑午','亥巳亥',),
            '戊申'=>array('子未寅','子申辰','寅亥申','丑亥酉','卯寅丑','巳申寅','戌酉午','子寅辰','寅巳申','辰申子','卯申丑','寅申寅',),
            '戊午'=>array('子未寅','戌午寅','寅亥申','丑亥酉','卯寅丑','巳申寅','寅午午','申戌子','酉子卯','寅午戌','辰酉寅','午子午',),
            '己巳'=>array('巳戌卯','巳亥巳','酉辰亥','卯亥未','寅亥申','丑亥酉','卯寅丑','巳申寅','申申午','亥丑卯','申亥寅','酉丑巳',),
            '己卯'=>array('巳戌卯','卯酉卯','戌巳子','未卯亥','子酉午','丑亥酉','丑子亥','卯子午','辰巳午','亥丑卯','酉子卯','未亥卯',),
            '己丑'=>array('巳戌卯','亥未丑','卯戌巳','巳丑酉','子辰戌','亥酉未','子亥戌','丑戌未','寅卯辰','卯巳未','午戌辰','酉丑巳',),
            '己亥'=>array('巳戌卯','巳亥巳','午丑申','未卯亥','巳寅亥','卯丑亥','戌酉申','亥未丑','丑寅卯','丑卯巳','寅巳申','亥卯未',),
            '己酉'=>array('未子巳','卯酉卯','亥午丑','巳丑酉','午卯子','卯丑亥','戌午申','酉未丑','亥子丑','丑卯巳','卯午酉','亥卯未',),
            '己未'=>array('巳戌卯','巳丑丑','酉辰亥','卯亥未','亥辰辰','丑巳巳','卯午午','未丑戌','未申申','酉酉酉','亥戌戌','亥卯未',),
            '庚午'=>array('辰申子','辰酉寅','寅申寅','戌巳子','戌午寅','巳寅亥','午辰寅','午巳辰','申寅巳','戌未酉','申戌子','酉子卯',),
            '庚辰'=>array('辰申子','寅未子','寅申寅','午丑申','子申辰','巳寅亥','午辰寅','卯寅丑','申寅巳','午未申','申戌子','寅巳申',),
            '庚寅'=>array('辰申子','子巳戌','寅申寅','戌巳子','戌午寅','巳寅亥','午辰寅','子亥戌','申寅巳','辰巳午','辰午申','申亥寅',),
            '庚子'=>array('辰申子','巳戌卯','寅申寅','戌巳子','子申辰','午卯子','午辰寅','戌酉申','申寅巳','寅卯辰','辰午申','午酉子',),
            '庚戌'=>array('辰申子','申丑午','寅申寅','戌巳子','子申辰','巳寅亥','午辰寅','午巳辰','申寅巳','亥子丑','子寅辰','寅巳寅',),
            '庚申'=>array('辰申子','卯丑丑','寅申寅','戌巳子','子申辰','巳寅亥','午辰寅','酉未未','申寅巳','亥酉酉','子寅辰','丑亥亥',),
            '辛未'=>array('寅辰午','亥丑丑','亥卯未','巳戌卯','巳丑辰','酉辰亥','卯亥未','亥未未','戊辰寅','巳辰卯','未丑戌','申亥申',),
            '辛巳'=>array('寅辰午','申亥寅','酉丑巳','卯申丑','巳亥巳','未寅酉','午寅戌','寅亥申','丑亥酉','卯寅丑','巳申寅','午未申',),
            '辛卯'=>array('巳未酉','酉子卯','未亥卯','卯申丑','卯酉卯','戌巳子','未卯亥','子未子','亥酉未','丑子亥','卯子午','辰巳午',),
            '辛丑'=>array('卯巳未','巳丑丑','酉丑巳','卯申丑','亥未辰','卯戌巳','巳丑酉','巳未未','亥酉未','子亥戌','丑戌未','寅卯辰',),
            '辛亥'=>array('丑卯巳','巳申亥','未亥卯','卯申丑','巳亥巳','午丑申','未卯亥','巳寅亥','午辰寅','戌酉申','亥戌未','丑寅卯',),
            '辛酉'=>array('丑卯巳','卯午酉','寅午戌','未子巳','卯酉卯','亥午丑','巳丑酉','午卯子','午辰寅','丑酉酉','酉戌未','亥子丑',),
            '壬申'=>array('丑寅卯','子寅辰','巳申亥','未亥卯','辰酉寅','寅申寅','午丑申','子申辰','巳寅亥','午辰寅','戌酉申','亥申寅',),
            '壬午'=>array('丑寅卯','申戌子','酉子卯','未亥卯','辰酉寅','午子午','午丑申','戌午寅','巳寅亥','寅子戌','戌酉申','亥午子',),
            '壬辰'=>array('丑寅卯','申戌子','戌丑辰','未亥卯','寅未子','巳亥巳','午丑申','子申辰','巳寅亥','寅子戌','戌酉申','亥辰戌',),
            '壬寅'=>array('辰巳午','辰午申','申亥寅','未亥卯','子巳戌','寅申寅','午丑申','戌午寅','巳寅亥','戌申午','子亥戌','亥寅巳',),
            '壬子'=>array('寅卯辰','辰午申','午酉子','未亥卯','巳戌卯','午子午','午丑申','未卯亥','午卯子','戌申午','戌酉申','亥子卯',),
            '壬戌'=>array('亥子丑','子寅辰','辰未戌','未亥卯','辰酉寅','巳亥巳','午丑申','未卯亥','巳寅亥','午辰寅','戌酉申','亥戌未',),
            '癸酉'=>array('未午巳','丑戌未','亥子丑','丑卯巳','辰未戌','酉丑巳','未子巳','卯酉卯','卯戌巳','巳丑酉','午卯子','未巳卯',),
            '癸未'=>array('巳辰卯','丑戌未','申寅申','巳未酉','辰未戌','酉丑巳','巳戌卯','未丑未','卯戌巳','巳丑酉','戌未辰','巳卯丑',),
            '癸巳'=>array('卯寅丑','丑戌未','未申酉','未酉亥','申亥寅','酉丑巳','午亥辰','巳亥巳','卯戌巳','巳丑酉','戌未辰','丑亥酉',),
            '癸卯'=>array('丑子亥','丑戌未','辰巳午','未酉亥','酉子卯','酉丑巳','午亥辰','卯酉卯','卯戌巳','未卯亥','戌未辰','丑亥酉',),
            '癸丑'=>array('子亥戌','丑戌未','寅卯辰','卯巳未','辰未戌','酉丑巳','午亥辰','未丑未','卯戌巳','巳丑酉','戌未辰','亥酉未',),
            '癸亥'=>array('戌酉申','丑戌未','丑寅卯','丑卯巳','辰未戌','酉丑巳','午亥辰','巳亥巳','卯戌巳','未卯亥','巳寅亥','未巳卯',),
        );
        $data=$arrData[$gz][$dizhiNumArr[$ssGz]];
        return $data;
    }
}